#ifndef DependencyPipe3OGSibling_H
#define DependencyPipe3OGSibling_H
#include"DependencyPipe2O.h"

class DependencyPipe3OGSibling : public DependencyPipe2O{
protected:
	void addGrandTripFeatures(DependencyInstance *instance, int gpar, int par, int ch1, int ch2, FeatureVector *fv);

	void addGrandSibFeatures(DependencyInstance *instance, int gpar, int ch1, int ch2, bool isST, FeatureVector *fv);

	void addCoordFeatures(DependencyInstance *instance, int gpar, int par, int ch2, FeatureVector *fv);

	virtual void addExtendedFeatures(DependencyInstance *instance, FeatureVector *fv);

	virtual void writeExtendedFeatures(DependencyInstance *instance, ObjectWriter &out);

public:
	DependencyPipe3OGSibling(ParserOptions *options);

	virtual ~DependencyPipe3OGSibling();

	bool isCoord(DependencyInstance *instance, int par, int ch1);

	void fillFeatureVectors(DependencyInstance* instance, vector<vector<vector<double> > > &probs, 
		vector<vector<vector<double> > > &probs_trips, vector<vector<vector<double> > > &probs_sibs,
		vector<vector<vector<double> > > &probs_grands, vector<vector<double> > &probs_gchs, 
		vector<vector<vector<vector<double> > > > &probs_gtrips, vector<vector<vector<vector<double> > > > &probs_gsibs,
		vector<vector<vector<double> > > &probs_coords, vector<vector<vector<vector<double> > > > &nt_probs, Parameters* params);

	DependencyInstance* readInstance(ObjectReader &in, int length, vector<vector<vector<double> > > &probs,
		vector<vector<vector<double> > > &probs_trips, vector<vector<vector<double> > > &probs_sibs,
		vector<vector<vector<double> > > &probs_grands, vector<vector<double> > &probs_gchs,
		vector<vector<vector<vector<double> > > > &probs_gtrips, vector<vector<vector<vector<double> > > > &probs_gsibs,
		vector<vector<vector<double> > > &probs_coords, vector<vector<vector<vector<double> > > > &nt_probs, Parameters* params);
};
#endif
